﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EpidemicSimulator.stopconditions
{
    public class MaxSimStepNumberStopCondition: StopCondition
    {
        private int maxSteps;

        public MaxSimStepNumberStopCondition(int maxSteps)
        {
            this.maxSteps = maxSteps;
        }
        public int getMaxSimTimeStepNumberStopCondition()
        {
            return maxSteps;
        }
        #region StopCondition Members

        public bool check(Simulation simulation)
        {
            if (simulation.simTime >= maxSteps) return true;
            return false;
        }

        #endregion
    }
}
